package com.whminwei.edu.api.dc.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.dc.dto.feq.CommonFeq;
import com.whminwei.edu.api.dc.dto.fspn.other.DcCpcActivityFspn;
import com.whminwei.edu.api.dc.dto.fspn.other.DcCpcDevelopFspn;
import com.whminwei.edu.api.dc.dto.fspn.other.DcCpcFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 党组织相关提报
 * 党员发展记录
 *
 * @author wangy
 * @since 2024/7/26
 */
@FeignClient(name = "xzzg-pt-other-service", contextId = "datacenter-cpc", configuration = FullHttpRspnConfig.class)
public interface DcOtherCpcClient {

    /**
     * 获取党务基本信息
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.dc.dto.fspn.other.DcCpcRspn>
     * @author wangy
     * @since 16:52 2024/7/28
     **/
    @PostMapping("/datacenter/getCpcInfo")
    FullHttpResponse<DcCpcFspn> getCpcInfo();

    /**
     * 获取党建活动信息
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.dc.dto.fspn.other.DcCpcActivityFspn>
     * @author zhangjq
     * @since 2024-08-01
     */
    @PostMapping("/datacenter/getCpcActivityInfo")
    FullHttpResponse<DcCpcActivityFspn> getCpcActivityInfo(CommonFeq feq);

    /**
     * 获取党员发展记录信息
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.dc.dto.fspn.other.DcCpcDevelopFspn>
     * @author zhangjq
     * @since 2024-08-06
     */
    @PostMapping("/datacenter/getCpcDevelopInfo")
    FullHttpResponse<DcCpcDevelopFspn> getCpcDevelopInfo(CommonFeq feq);
}
